﻿using System;
using System.Windows.Controls;
using RSSFeedReader.Controls;

namespace RSSFeedReader.Views
{
    /// <summary>
    /// Interaction logic for ChannelView.xaml
    /// </summary>
    public partial class ChannelView : UserControl
    {
        /// <summary>
        /// Occurs when a Dragdrop operation is complete.
        /// </summary>
        public event EventHandler<MyTreeViewDragEventArgs> DragDropCompleted;

        /// <summary>
        /// Initialize a new instance of the <see cref="ChannelView"/> class.
        /// </summary>
        public ChannelView()
        {
            InitializeComponent();
        }

        private void OnDragDropComplete(object sender, MyTreeViewDragEventArgs e)
        {
            if (DragDropCompleted != null)
            {
                DragDropCompleted(sender, e);
            }
        }
    }
}
